<?php
if(!class_exists('XAbstractLocaleHolder', false)){
	require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'XAbstractLocaleHolder.php');
}
class XCookieLocaleHolder extends XAbstractLocaleHolder{
	protected function load(){
		$this->locale = XServletCookie::singleton()->get('locale');
		$this->locales = array($this->locale);
	}	
	protected function setup($locale){		
		XServletCookie::singleton()->set('locale', $locale);
	}
}
?>